home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4883 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: news.tau.ac.il!usenet
  2. From: Avi Lev <avil@sapiens.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: Wed, 06 Mar 1996 08:55:04 +0200
  6. Organization: Sapiens Technologies
  7. Message-ID: <313D36C8.72B7@sapiens.com>
  8. References: <4fstt2$old@newsstand.cit.cornell.edu> <PETERM.96Feb19135541@tui.maths.irl.cri.nz> <4glch6$rle@ra.nrl.navy.mil> <1190.6631T892T581@und.ida.liu.se> <Ronald.07ii@noblehouse.xs4all.nl> <31355992.58CD@afrodite.kih.no>
  9. NNTP-Posting-Host: honda.sapiens.co.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Paul Kenneth Egell-johnsen wrote:
  16. > Ronald van Eijck wrote:
  17. > > How about an interpreter with a special 'memory mode' This means that you
  18. > > can start an application under the interpreter which then remembers the
  19. > > translated version of the code it interpreted. If you run the program once
  20. > > this way and make sure you have the largest part of the program executed at
  21. > > least once, especially those parts that need the speed, the interpreter can
  22. > > write out a new binary with the translated parts replaced. A system that
  23. > > would do this automatically and incrementally everytime you run the application
  24. > > would translate more and more of the program to native code everytime you
  25. > > run it. Still an awful complex piece of code I think but very nice once
  26. > > you have it. Goodbye to self modifying code but that should have been outlawed
  27. > > a long time ago anyway.
  28.  
  29. Hi guys, you can argue whether it's possible or not as much as 
  30. you want i claim IT'S DAMN POSSIBLE!!! it's just that no one is 
  31. brave enough to take it on him/her-self to do it cuz the job is 
  32. just too hard. assuming you have a completely compatible OS 
  33. written in native PPC code, translation shoudn't be more 
  34. difficult than translating mov cx,3 (in x86) to move a2,3 (in 
  35. 680x0) so what's the problem?! finding out which parts are code 
  36. and which ones are data is very easy for someone who's familiar 
  37. with the executable file format of the Amiga, there're 
  38. DATA_HUNK's and there're CODE_HUNK's isn't that enough to 
  39. recognise what is what, just translate the CODE_HUNK's and 
  40. you're done. the main concern is efficiency just as it is with 
  41. normal source compilers, however PPC's are faster anyway so even 
  42. the most inefficient translator will do the job quite nice in 
  43. fact. self-modifying code isn't dead by the way it's very much 
  44. alive'n kickin', hey it's the best defense against software 
  45. crackers isn't it?!
  46. thanks for 'listening', Avi.
  47.